home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2774 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 64 32 2e 63 78 6f |Path: nn|tpd2.cxo|
|00000010| 2e 64 65 63 2e 63 6f 6d | 21 75 73 65 6e 65 74 0a |.dec.com|!usenet.|
|00000020| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 48 69 62 62 |From: Br|ian Hibb|
|00000030| 65 72 74 20 3c 62 5f 68 | 69 62 62 65 72 74 40 63 |ert <b_h|ibbert@c|
|00000040| 73 63 33 32 2e 65 6e 65 | 74 2e 64 65 63 2e 63 6f |sc32.ene|t.dec.co|
|00000050| 6d 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |m>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 53 75 62 |omp.lang|.c++.Sub|
|00000070| 6a 65 63 74 3a 20 52 65 | 3a 20 6f 76 65 72 6c 6f |ject: Re|: overlo|
|00000080| 61 64 65 64 20 6f 70 65 | 72 61 74 6f 72 20 71 75 |aded ope|rator qu|
|00000090| 65 73 74 69 6f 6e 0a 44 | 61 74 65 3a 20 31 39 20 |estion.D|ate: 19 |
|000000a0| 4a 61 6e 20 31 39 39 36 | 20 31 37 3a 32 34 3a 32 |Jan 1996| 17:24:2|
|000000b0| 39 20 47 4d 54 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |9 GMT.Or|ganizati|
|000000c0| 6f 6e 3a 20 44 69 67 69 | 74 61 6c 20 45 71 75 69 |on: Digi|tal Equi|
|000000d0| 70 6d 65 6e 74 20 43 6f | 72 70 6f 72 61 74 69 6f |pment Co|rporatio|
|000000e0| 6e 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 34 |n.Messag|e-ID: <4|
|000000f0| 64 6f 6b 34 64 24 35 66 | 33 40 6e 6e 74 70 64 32 |dok4d$5f|3@nntpd2|
|00000100| 2e 63 78 6f 2e 64 65 63 | 2e 63 6f 6d 3e 0a 52 65 |.cxo.dec|.com>.Re|
|00000110| 66 65 72 65 6e 63 65 73 | 3a 20 3c 34 64 6d 69 6e |ferences|: <4dmin|
|00000120| 31 24 31 36 30 40 6e 6f | 63 32 2e 64 72 65 78 65 |1$160@no|c2.drexe|
|00000130| 6c 2e 65 64 75 3e 0a 4e | 4e 54 50 2d 50 6f 73 74 |l.edu>.N|NTP-Post|
|00000140| 69 6e 67 2d 48 6f 73 74 | 3a 20 70 65 6f 31 30 31 |ing-Host|: peo101|
|00000150| 32 5f 70 6f 72 74 31 2e | 70 65 6f 2e 64 65 63 2e |2_port1.|peo.dec.|
|00000160| 63 6f 6d 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |com.Mime|-Version|
|00000170| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|00000180| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|00000190| 63 68 61 72 73 65 74 3d | 75 73 2d 61 73 63 69 69 |charset=|us-ascii|
|000001a0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 72 61 6e 73 66 65 |.Content|-Transfe|
|000001b0| 72 2d 45 6e 63 6f 64 69 | 6e 67 3a 20 37 62 69 74 |r-Encodi|ng: 7bit|
|000001c0| 0a 58 2d 4d 61 69 6c 65 | 72 3a 20 4d 6f 7a 69 6c |.X-Maile|r: Mozil|
|000001d0| 6c 61 20 31 2e 32 4e 20 | 28 57 69 6e 64 6f 77 73 |la 1.2N |(Windows|
|000001e0| 3b 20 49 3b 20 31 36 62 | 69 74 29 0a 54 6f 3a 20 |; I; 16b|it).To: |
|000001f0| 73 74 39 31 38 68 35 77 | 40 64 75 6e 78 31 2e 6f |st918h5w|@dunx1.o|
|00000200| 63 73 2e 64 72 65 78 65 | 6c 2e 65 64 75 0a 0a 73 |cs.drexe|l.edu..s|
|00000210| 74 39 31 38 68 35 77 40 | 64 75 6e 78 31 2e 6f 63 |t918h5w@|dunx1.oc|
|00000220| 73 2e 64 72 65 78 65 6c | 2e 65 64 75 20 28 4a 6f |s.drexel|.edu (Jo|
|00000230| 6e 61 74 68 61 6e 20 4a | 75 6e 69 6d 61 6e 29 20 |nathan J|uniman) |
|00000240| 77 72 6f 74 65 3a 0a 3e | 57 68 61 74 20 69 73 20 |wrote:.>|What is |
|00000250| 77 72 6f 6e 67 20 77 69 | 74 68 20 74 68 65 20 66 |wrong wi|th the f|
|00000260| 6f 6c 6c 6f 77 69 6e 67 | 20 64 65 63 6c 61 72 61 |ollowing| declara|
|00000270| 74 69 6f 6e 3a 0a 3e 0a | 3e 4d 41 54 52 49 58 2e |tion:.>.|>MATRIX.|
|00000280| 48 0a 3e 63 6c 61 73 73 | 20 4d 61 74 72 69 78 0a |H.>class| Matrix.|
|00000290| 3e 09 7b 0a 3e 09 70 75 | 62 6c 69 63 3a 0a 3e 09 |>.{.>.pu|blic:.>.|
|000002a0| 2f 2f 20 73 65 76 65 72 | 61 6c 20 6f 74 68 65 72 |// sever|al other|
|000002b0| 20 66 75 6e 63 74 69 6f | 6e 73 20 68 65 72 65 2e | functio|ns here.|
|000002c0| 2e 2e 0a 3e 09 4d 61 74 | 72 69 78 20 4d 61 74 72 |...>.Mat|rix Matr|
|000002d0| 69 78 3a 3a 6f 70 65 72 | 61 74 6f 72 20 2a 28 4d |ix::oper|ator *(M|
|000002e0| 61 74 72 69 78 26 2c 20 | 4d 61 74 72 69 78 26 29 |atrix&, |Matrix&)|
|000002f0| 3b 0a 3e 09 7d 0a 3e 20 | 20 0a 3e 4d 79 20 63 6f |;.>.}.> | .>My co|
|00000300| 6d 70 69 6c 65 72 20 28 | 4d 69 63 72 6f 73 6f 66 |mpiler (|Microsof|
|00000310| 74 20 56 69 73 75 61 6c | 20 43 2b 2b 20 76 31 2e |t Visual| C++ v1.|
|00000320| 35 29 20 63 6f 6d 70 6c | 61 69 6e 73 20 74 68 61 |5) compl|ains tha|
|00000330| 74 20 74 68 65 72 65 20 | 61 72 65 20 74 6f 6f 0a |t there |are too.|
|00000340| 3e 6d 61 6e 79 20 61 72 | 67 75 6d 65 6e 74 73 2e |>many ar|guments.|
|00000350| 20 20 48 6f 77 20 63 61 | 6e 20 74 68 65 72 65 20 | How ca|n there |
|00000360| 62 65 20 74 6f 6f 20 6d | 61 6e 79 20 61 72 67 75 |be too m|any argu|
|00000370| 6d 65 6e 74 73 3f 20 20 | 2a 20 69 73 20 61 20 62 |ments? |* is a b|
|00000380| 69 6e 61 72 79 0a 3e 6f | 70 65 72 61 74 6f 72 21 |inary.>o|perator!|
|00000390| 20 20 4d 79 20 69 6e 74 | 65 6e 74 69 6f 6e 20 69 | My int|ention i|
|000003a0| 73 20 74 6f 20 70 65 72 | 66 6f 72 6d 20 6d 61 74 |s to per|form mat|
|000003b0| 72 69 78 20 6d 75 6c 74 | 69 70 6c 69 63 61 74 69 |rix mult|iplicati|
|000003c0| 6f 6e 20 62 79 20 0a 3e | 74 79 70 69 6e 67 20 61 |on by .>|typing a|
|000003d0| 20 3d 20 62 20 2a 20 63 | 2c 20 77 68 65 72 65 20 | = b * c|, where |
|000003e0| 61 2c 20 62 20 61 6e 64 | 20 63 20 61 72 65 20 6f |a, b and| c are o|
|000003f0| 62 6a 65 63 74 73 20 6f | 66 20 74 79 70 65 20 4d |bjects o|f type M|
|00000400| 61 74 72 69 78 2e 0a 3e | 0a 3e 41 6e 79 20 68 65 |atrix..>|.>Any he|
|00000410| 6c 70 20 77 6f 75 6c 64 | 20 62 65 20 61 70 70 72 |lp would| be appr|
|00000420| 65 63 69 61 74 65 64 2e | 20 20 50 6c 65 61 73 65 |eciated.| Please|
|00000430| 20 72 65 70 6c 79 20 62 | 79 20 65 2d 6d 61 69 6c | reply b|y e-mail|
|00000440| 2e 20 20 54 68 61 6e 6b | 73 2c 20 2d 4a 6f 6e 2e |. Thank|s, -Jon.|
|00000450| 0a 3e 0a 0a 54 68 65 20 | 63 6f 6d 70 69 6c 65 72 |.>..The |compiler|
|00000460| 20 69 73 20 63 6f 72 72 | 65 63 74 2c 20 79 6f 75 | is corr|ect, you|
|00000470| 20 61 72 65 20 61 63 74 | 75 61 6c 6c 79 20 74 72 | are act|ually tr|
|00000480| 79 69 6e 67 20 74 6f 20 | 70 61 73 73 20 74 68 65 |ying to |pass the|
|00000490| 20 66 75 6e 63 74 69 6f | 6e 20 33 20 0a 70 61 72 | functio|n 3 .par|
|000004a0| 61 6d 65 74 65 72 73 2e | 20 20 57 68 65 6e 20 61 |ameters.| When a|
|000004b0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 61 20 6d | functio|n is a m|
|000004c0| 65 6d 62 65 72 20 6f 66 | 20 61 20 63 6c 61 73 73 |ember of| a class|
|000004d0| 2c 20 74 68 65 20 66 69 | 72 73 74 20 70 61 72 61 |, the fi|rst para|
|000004e0| 6d 65 74 65 72 20 0a 28 | 6f 72 20 6c 65 66 74 20 |meter .(|or left |
|000004f0| 68 61 6e 64 20 73 69 64 | 65 20 6f 70 65 72 61 74 |hand sid|e operat|
|00000500| 6f 72 29 20 69 73 20 61 | 73 73 75 6d 65 64 20 61 |or) is a|ssumed a|
|00000510| 6e 64 20 69 73 20 72 65 | 70 72 65 73 65 6e 74 65 |nd is re|presente|
|00000520| 64 20 62 79 20 74 68 65 | 20 22 74 68 69 73 22 0a |d by the| "this".|
|00000530| 70 6f 69 6e 74 65 72 2e | 20 20 49 66 20 74 68 65 |pointer.| If the|
|00000540| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 6e 6f 74 | functio|n is not|
|00000550| 20 61 20 6d 65 6d 62 65 | 72 20 6f 66 20 61 20 63 | a membe|r of a c|
|00000560| 6c 61 73 73 2c 20 74 68 | 65 6e 20 69 74 20 72 65 |lass, th|en it re|
|00000570| 71 75 69 72 65 73 20 32 | 20 0a 65 78 70 6c 69 63 |quires 2| .explic|
|00000580| 69 74 20 70 61 72 61 6d | 65 74 65 72 73 2e 0a 0a |it param|eters...|
|00000590| 20 20 0a 0a 0a 2d 2d 20 | 0a 2a 2a 2a 2a 2a 2a 2a | ...-- |.*******|
|000005a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005c0| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 42 72 69 61 6e 20 48 |********|.Brian H|
|000005d0| 69 62 62 65 72 74 20 20 | 62 5f 68 69 62 62 65 72 |ibbert |b_hibber|
|000005e0| 74 40 63 73 63 33 32 2e | 65 6e 65 74 2e 64 65 63 |t@csc32.|enet.dec|
|000005f0| 2e 63 6f 6d 0a 44 69 67 | 69 74 61 6c 20 45 71 75 |.com.Dig|ital Equ|
|00000600| 69 70 6d 65 6e 74 20 43 | 6f 72 70 6f 72 61 74 69 |ipment C|orporati|
|00000610| 6f 6e 0a 41 6c 6c 20 6f | 70 69 6e 69 6f 6e 73 20 |on.All o|pinions |
|00000620| 65 78 70 72 65 73 73 65 | 64 20 61 72 65 20 6d 79 |expresse|d are my|
|00000630| 20 6f 77 6e 20 61 6e 64 | 20 73 68 6f 75 6c 64 0a | own and| should.|
|00000640| 6e 6f 74 20 62 65 20 61 | 73 73 75 6d 65 64 20 74 |not be a|ssumed t|
|00000650| 6f 20 62 65 20 74 68 65 | 20 6f 70 69 6e 69 6f 6e |o be the| opinion|
|00000660| 20 6f 66 20 6d 79 20 65 | 6d 70 6c 6f 79 65 72 0a | of my e|mployer.|
|00000670| 0a 0a 0a 0a 0a | |..... | |
+--------+-------------------------+-------------------------+--------+--------+